/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package deque;

import exceptions.EmptyDequeException;

/**
 *
 * @author pc
 */
public interface Deque<E> {

    public int size();

    public boolean isEmpty();

    public E getFirst() throws EmptyDequeException;

    public E getLast() throws EmptyDequeException;

    public void addFirst(E element);

    public void addLast(E element);

    public E removeFirst() throws EmptyDequeException;

    public E removeLast() throws EmptyDequeException;
}
